package com.ruoyi.jiuzai.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.jiuzai.mapper.GongyingshangMapper;
import com.ruoyi.jiuzai.domain.Gongyingshang;
import com.ruoyi.jiuzai.service.IGongyingshangService;

/**
 * 生产商名录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-21
 */
@Service
public class GongyingshangServiceImpl implements IGongyingshangService 
{
    @Autowired
    private GongyingshangMapper gongyingshangMapper;

    /**
     * 查询生产商名录
     * 
     * @param sId 生产商名录主键
     * @return 生产商名录
     */
    @Override
    public Gongyingshang selectGongyingshangBySId(Long sId)
    {
        return gongyingshangMapper.selectGongyingshangBySId(sId);
    }

    /**
     * 查询生产商名录列表
     * 
     * @param gongyingshang 生产商名录
     * @return 生产商名录
     */
    @Override
    public List<Gongyingshang> selectGongyingshangList(Gongyingshang gongyingshang)
    {
        return gongyingshangMapper.selectGongyingshangList(gongyingshang);
    }

    /**
     * 新增生产商名录
     * 
     * @param gongyingshang 生产商名录
     * @return 结果
     */
    @Override
    public int insertGongyingshang(Gongyingshang gongyingshang)
    {
        return gongyingshangMapper.insertGongyingshang(gongyingshang);
    }

    /**
     * 修改生产商名录
     * 
     * @param gongyingshang 生产商名录
     * @return 结果
     */
    @Override
    public int updateGongyingshang(Gongyingshang gongyingshang)
    {
        return gongyingshangMapper.updateGongyingshang(gongyingshang);
    }

    /**
     * 批量删除生产商名录
     * 
     * @param sIds 需要删除的生产商名录主键
     * @return 结果
     */
    @Override
    public int deleteGongyingshangBySIds(Long[] sIds)
    {
        return gongyingshangMapper.deleteGongyingshangBySIds(sIds);
    }

    /**
     * 删除生产商名录信息
     * 
     * @param sId 生产商名录主键
     * @return 结果
     */
    @Override
    public int deleteGongyingshangBySId(Long sId)
    {
        return gongyingshangMapper.deleteGongyingshangBySId(sId);
    }
}
